package com.gxa.ssm251.mapper;

import com.gxa.ssm251.pojo.User;
import io.swagger.models.auth.In;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface UserMapper {

    User selectByIduser(Integer id);
    //    Integer insert(User user);
    List<User> selectLikeName(String name);
    User  selectLikePhoneAndId(Map<String,Object> pa);
    List<User> selectNameByPage(String name,Integer page,Integer size);
    List<Map<String,Object>> selectCpnByPhone (String phone);
    List<User> selectNameorPhone(User user);
    List<User> selectLikeOthers(User user);
    //    批量修改方法
   // Integer updateBatch(List<Integer> list);
    User selectByPhone(String phone) throws Exception;

    List selectAllBypage(Integer page, Integer size);
    /*Integer getCount() throws Exception;
    List<User> selectAlluser() throws Exception;
    List selectAllBypage(Integer page, Integer size) throws Exception;*/

    List<User> selectAllById(Integer id);

    List<User> selectByPage(Integer page,Integer size);

    Integer update(User user);

    User selectById(Integer id);

    Integer deleteById(Integer id);

    List<User> selectLikeNameOrPhone(String param);

    List<User> exportUserInfo();

    Integer insert(User user) throws Exception ;
}
